@model ShivamEMR.Model.Domain.PatientDomain.PatientTreatment

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>PatientTreatment</legend>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">StartedOnDateTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.StartedOnDateTime)</div>

    <div class="display-label">DiscontinuedOn</div>
    <div class="display-field">@String.Format("{0:g}", Model.DiscontinuedOn)</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Patient</div>
    <div class="display-field">@(Model.Patient == null ? "None" : Model.Patient.Title)</div>

    <div class="display-label">TreatmentType</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.TreatmentType).ToString()</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Status).ToString()</div>

    <div class="display-label">Medications</div>
    <div class="display-field">@(Model.Medications == null ? "None" : Model.Medications.Count.ToString())</div>

    <div class="display-label">Diagnosis</div>
    <div class="display-field">@(Model.Diagnosis == null ? "None" : Model.Diagnosis.Count.ToString())</div>

    <div class="display-label">Consultations</div>
    <div class="display-field">@(Model.Consultations == null ? "None" : Model.Consultations.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


